package com.hu.hutool.ThreadUtil;

import cn.hutool.core.thread.ThreadUtil;
import lombok.extern.slf4j.Slf4j;

import java.util.concurrent.Callable;
import java.util.concurrent.TimeUnit;

/**
 * @Author CazCen
 * @Date 2021/11/16 13:01
 */
@Slf4j
public class CallableA1 implements Callable {
    @Override
    public String call() throws Exception {
        log.info("当前线程开始执行A1了  threadName:{}", Thread.currentThread().getName());
        ThreadUtil.sleep(5, TimeUnit.SECONDS);
        log.info("当前线程执行完A1了  threadName:{}", Thread.currentThread().getName());
        return "null-aaa";
    }
}
